from build_tools import *

pwd  = PresentDir()
cpp_path = [pwd]

# util auth#
src  = Glob('./auth/*.c')
src += Glob("./util/*.c")
cpp_path += [pwd + "./util"]
cpp_path += [pwd + "./auth"]

# face recognition #
if IsDefined(['NINESKY_USING_FACE_RECOG']):
    src += Glob('./face_recognition/*.c')
    cpp_path += [pwd + "./face_recognition"]
    
# image recognition #
if IsDefined(['NINESKY_USING_IMAGE_RECOG']):
    src += Glob('./image_recognition/*.c')
    cpp_path += [pwd + "./image_recognition"]
    
# text recognition #
if IsDefined(['NINESKY_USING_TEXT_RECOG']):
    src += Glob('./text_recognition/*.c')
    cpp_path += [pwd + "./text_recognition"]

# text semantic #
if IsDefined(['NINESKY_USING_TEXT_SEMANTIC']):
    src += Glob('./text_semantic/*.c')
    cpp_path += [pwd + "./text_semantic"]

group = AddCodeGroup('ninesky', src, depend = ['PKG_USING_NINESKY'], CPPPATH = cpp_path)

Return('group')
